﻿using System;
using System.Collections.Generic;

namespace EasyMvc.Config
{
    public class AdminMenu : ConfigFileBase
    {
        public AdminMenu()
        {
            this.AdminMenuGroups = new List<AdminMenuGroup>();
        }
        
        public List<AdminMenuGroup> AdminMenuGroups { get; set; }
    }

    public class AdminMenuGroup : ConfigNodeBase
    {
        public AdminMenuGroup()
        {
            this.AdminMenuItems = new List<AdminMenuItem>();
        }
        
        public List<AdminMenuItem> AdminMenuItems { get; set; }
    }

    public class AdminMenuItem : ConfigNodeBase
    {
        public string Url { get; set; }
        public string Info { get; set; }
        public string Permission { get; set; }
    }
}
